@import './_themes.scss';
@import "./reset.scss";
@import "../icons/icon.css";

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-app-region: no-drag;
}

.themes-warp {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.btn {
  cursor: pointer;

  &:hover {
    opacity: 0.8;
  }
}

#root {
  width: 100%;
  height: 100%;
  background: url("../image/bg.jpg");
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
}

.bg-blur {
  filter: blur(20px);
  //position: absolute;
  //width: 100%;
  //height: 100%;
  //left: 0;
  //top:0;
}

.home {
  width: 1080px;
  height: 580px;
  //background: $color-bg;
  color: $color-font;
  margin: 0 auto;
  display: flex;

  .pixel-warp {
    display: flex;
    width: 100%;
    height: 580px;
    flex-direction: column;

    .ctrl-warp {
      height: 70px;
      width: 100%;
      background: #fff;
      border-radius: 0 0 10px 10px;
      border: solid 1px $color-border;
      border-top: none;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 3px 10px;

      .ctrl-c-warp {
        flex: 1;
        display: flex;
        margin: 0 0 0 20px;
        height: 50px;
        border: solid 1px #eee;
        border-radius: 3px;
        overflow: hidden;

        .g-warp {
          //flex: 1;
          width: 518px;

          .g-warp-parent {
            height: 50px;
            padding: 4px;

            .color-item {
              width: 40px;
              height: 40px;
              margin-left: 10px;
              border-radius: 5px;
              float: left;
              cursor: pointer;
              opacity: 0.9;
              color: #FFF;
              letter-spacing: 1px;
              text-shadow: rgb(0 0 0 / 90%) 0px 1px 2px;
              box-shadow: rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(0 0 0 / 25%) 0px 0px 0px, inset rgb(255 255 255 / 3%) 0px 20px 0px, inset rgb(0 0 0 / 15%) 0px -20px 20px, inset rgb(255 255 255 / 5%) 0px 20px 20px;
              transition: all 0.5s linear;
              text-align: center;
              line-height: 35px;



              &.active{
                border: solid 1px red;
                .color-keymap{
                  font-weight: 800;
                }
              }

              &:hover {
                box-shadow: inset rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(0 0 0 / 25%) 0px 0px 0px, inset rgb(255 255 255 / 3%) 0px 10px 0px, inset rgb(0 0 0 / 15%) 0px -10px 10px, inset rgb(255 255 255 / 5%) 0px 10px 10px;
                //background-color: #f5f5f5;
                //border: 1px solid #f80;
              }
            }

          }
        }

        .arrow-btn {
          width: 24px;
          height: 100%;
          cursor: pointer;
          background: #eee;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #A3A3A3;

          &:hover {
            background: #e3e3e3;
          }

          .iconfont.right {
            transform: rotate(180deg);
          }
        }

      }

      .color-item-add {
        width: 40px;
        height: 40px;
        border-radius: 5px;
        margin-left: 10px;
        margin-right: 10px;
        float: left;
        cursor: pointer;
        color: #FFF;
        background: #7fbfff;
        text-align: center;
        line-height: 38px;
        letter-spacing: 1px;
        text-shadow: rgb(0 0 0 / 90%) 0px 1px 10px;
        box-shadow: rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(0 0 0 / 25%) 0px 0px 0px, inset rgb(255 255 255 / 3%) 0px 20px 0px, inset rgb(0 0 0 / 15%) 0px -20px 20px, inset rgb(255 255 255 / 5%) 0px 20px 20px;
        transition: all 0.1s linear;

        &:hover {
          box-shadow: inset rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(0 0 0 / 25%) 0px 0px 0px, inset rgb(255 255 255 / 3%) 0px 10px 0px, inset rgb(0 0 0 / 15%) 0px -10px 10px, inset rgb(255 255 255 / 5%) 0px 10px 10px;
        }
      }

      .energy {
        height: 60px;
        width: 60px;
        cursor: pointer;
        opacity: 0.9;
        color: #FFF;
        letter-spacing: 1px;
        text-shadow: rgb(0 0 0 / 90%) 0px 1px 2px;
        background: #434343;
        border: 1px solid #242424;
        border-radius: 50px;
        box-shadow: rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(0 0 0 / 25%) 0px 0px 0px, inset rgb(255 255 255 / 3%) 0px 20px 0px, inset rgb(0 0 0 / 15%) 0px -20px 20px, inset rgb(255 255 255 / 5%) 0px 20px 20px;
        transition: all 0.1s linear;
        display: flex;
        align-items: center;
        justify-content: center;

        &.red {
          background: #DF1A11;
          border: 1px solid #8f0f0a;
        }

        &.blue {
          background: #007CEF;
          border: 1px solid rgba(0, 99, 189, 0.15);

        }

        &:hover {
          box-shadow: inset rgb(255 255 255 / 25%) 0px 1px 0px, inset rgb(0 0 0 / 25%) 0px 0px 0px, inset rgb(255 255 255 / 3%) 0px 10px 0px, inset rgb(0 0 0 / 15%) 0px -10px 10px, inset rgb(255 255 255 / 5%) 0px 10px 10px;
        }
      }
    }
  }

  $pixel-border-color: #e3e3e3;

  .pixel-panel {
    width: 790px;
    flex: 1;
    //border: 1px solid #ccc;
    //border-right: solid 1px $pixel-border-color;
    box-sizing: border-box;
    background: $color-bg;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.6);

    .pixel-line {
      height: 10px;
      width: 100%;

      .pixel-box {
        float: left;
        width: 10px;
        height: 10px;
        /* border: 1px solid #ccc; */
        border-right: 1px solid $pixel-border-color;
        border-bottom: 1px solid $pixel-border-color;
        box-sizing: border-box;

        &.select {
          border: 2px solid rgba(235, 174, 144, 1);
        }

        &:nth-child(1) {
          border-left: solid 1px $pixel-border-color;
          //border-right: none;
        }
      }
    }
  }

  .chat-panel {
    margin-left: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: $color-bg;
    border-radius: 10px;
    overflow: hidden;
    min-width: 280px;
    border: solid 1px $color-border;
    box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.6);

    .notice-warp {
      height: 40px;
      width: 100%;
      font-size: 12px;
      display: flex;
      align-items: center;

      .iconfont {
        margin-left: 10px;
        margin-right: 10px;
      }

      .notice-gg {
        color: #999;
      }

      .notice-content {
        color: #666;
      }
    }

    .tab-warp {
      display: none;
      flex-direction: column;
      border-top: solid 1px $color-border;


      .tab-head {
        display: flex;
        background: #eee;


        .tab-head-item {
          text-align: center;
          line-height: 32px;
          flex: 1;
          font-size: 12px;
          color: #333;
          cursor: pointer;

          &:hover {
            opacity: 0.8;
          }

          &.active {
            background: #fff;

          }
        }
      }

      .tab-content {
        height: 150px;
        width: 100%;
        background: #fff;
      }
    }

    .chat-list-warp {
      border-top: solid 1px $color-border;
      border-bottom: solid 1px $color-border;
      flex: 1;
      overflow: scroll;

      .chat-room-list {

        .msg-item {
          padding: 4px 9px;
          line-height: 20px;
          font-size: 13px;

          span {
            vertical-align: middle;
            margin-right: 3px;
            line-height: 18px;
            display: inline-block;

            &.color-o {
              color: #FFA900;
            }

            &.name {
              max-width: 8em;
              white-space: nowrap;
              word-wrap: normal;
              overflow: hidden;
              text-overflow: ellipsis;
              color: #3c9cfe;
              cursor: pointer;
            }

            &.colon {
              color: #3c9cfe;
              padding: 0 0.3px;
            }

            &.msg {
              word-break: break-all;
              word-wrap: break-word;
              color: #333;
              display: inline;
            }
          }
        }
      }
    }

    .send-msg-warp {
      height: 69px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;

      .send-warp {
        width: 260px;
        display: flex;

        .input-warp {
          flex: 1;
          border: solid 1px #e4e4e4;
          tab-index: 1;
          width: 100%;
          overflow: auto;
          padding: 4px 5px;
          border-radius: 5px 0 0 5px;
          box-sizing: border-box;
          line-height: 16px;
          font-size: 12px;
          background: #fff;
          outline: none;
          resize: none;
          height: 50px;
          border-right: none;

          &:focus {
            border: 1px solid #ffab48;
            border-right: none;
          }
        }

        .send-btn {
          width: 50px;
          height: 50px;
          line-height: 50px;
          text-align: center;
          font-size: 14px;
          color: #fff;
          background: #ff8a00;
          border-radius: 0 5px 5px 0;
          cursor: pointer;
          opacity: .85;

          &:hover {
            opacity: .7;

          }
        }
      }
    }
  }
}


.add-color-panel {
  .sketch-picker {
    //padding: 0!important;
    border: none !important;
    box-shadow: none !important;
  }
}

.ant-form-item {
  margin-bottom: 10px!important;
}
.ant-modal-body {
  padding: 15px 24px 10px 24px!important;
}
.ant-modal-header {
  padding: 10px 24px;
}